﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cuan_kuan
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            float ben, li, nian;
            float zong = 0;
            ben = Single.Parse(textBox1.Text);
            li = Single.Parse(textBox2.Text);
            nian = Single.Parse(textBox3.Text);


            zong = ben * (float)Math.Pow(1 + li, nian);
            
            textBox4.Text=zong.ToString();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text=" ";
            textBox2.Text=" ";
            textBox3.Text=" ";
            textBox4.Text=" ";
        }
    }
}
